﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvvmFoundation.Wpf;
using SqlMiM.SqlServer.Model;

namespace SqlMiM.SqlServer.ViewModel
{
    public class ServerInfoViewModel : ObservableObject
    {
        private ServerInfo serverInfo;

        public ServerInfo ServerInfo
        {
            get
            {
                return serverInfo;
            }
            set
            {
                serverInfo = value;
                this.RaisePropertyChanged("ServerInfo");
            }
        }

        public ServerInfoViewModel(ServerInfo serverInfo)
        {
            this.serverInfo = serverInfo;
            this.ServerName = this.serverInfo.ServerName;
        }

        private String serverName;

        public String ServerName
        {
            get
            {
                return this.serverName;
            }
            set
            {
                serverName = value;
                this.RaisePropertyChanged("ServerName");
            }
        }



    }
}
